Skip to content

feat: use modules#127

Merged
fgdorais merged 3 commits intofgdorais:mainfrom
hatzka-nezumi:modules
Apr 21, 2026
Merged

feat: use modules#127
fgdorais merged 3 commits intofgdorais:mainfrom
hatzka-nezumi:modules

Conversation

@hatzka-nezumi
Copy link
Copy Markdown
Contributor

This PR makes every Lean file in this package a module, so that downstream users can also be modules. (They don't have to be—non-modules can depend on modules.)

I made everything public by default as the reference recommends when migrating existing code, so there should be few breaking changes, although it's impossible to say who was unfolding something they shouldn't have. In particular, I was able to modularize Parser with similarly few changes (since it's in a separate repository it will need a separate PR).

@fgdorais
Copy link
Copy Markdown
Owner

Excellent! Thank you!

Did you compare with existing (but outdated) drafts at #111 and #102? I've been working on this but kept being interrupted by more urgent matters.

Copy link
Copy Markdown
Owner

@fgdorais fgdorais left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cosmetic fixes. Spurious dot notation for none and some. Two or three questions.

Comment thread UnicodeBasic/CharacterDatabase.lean Outdated
Comment thread UnicodeBasic/CharacterDatabase.lean Outdated
Comment thread UnicodeBasic/Hangul.lean Outdated
Comment thread UnicodeBasic/Hangul.lean Outdated
Comment thread UnicodeBasic/Hangul.lean Outdated
Comment thread UnicodeData/Basic.lean
Comment thread UnicodeData/Basic.lean Outdated
Comment thread UnicodeData/PropList.lean
Comment thread UnicodeData/PropList.lean Outdated
Comment thread UnicodeBasic.lean Outdated
@fgdorais fgdorais changed the title feat: modularize feat: use modules Apr 21, 2026
Copy link
Copy Markdown
Owner

@fgdorais fgdorais left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@fgdorais fgdorais merged commit 603cc6e into fgdorais:main Apr 21, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants